package com.sptus.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sptus.common.annotation.DataSource;
import com.sptus.common.enums.DataSourceType;
import com.sptus.web.entity.SptUserRole;
import com.sptus.web.mapper.slave.SptUserRoleMapper;
import com.sptus.web.service.ISptUserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

//@DS("multi-datasource1")
@DataSource(DataSourceType.SLAVE)
@Service
public class SptUserRoleServiceImpl extends ServiceImpl<SptUserRoleMapper, SptUserRole> implements ISptUserRoleService {

    @Override
    public List<String> getRoleCode(String id) {
        return this.getBaseMapper().getRoleCode(id);
    }
}
